package com.ling.pl.security.view.global;

import com.bstek.dorado.annotation.DataProvider;
import com.ling.pl.security.feign.DefaultOrgService;
import com.ling.pl.security.model.DefaultOrgVO;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component("ling2.orgSelect")
public class OrgSelect {
    @Resource
    private DefaultOrgService orgService;

    @DataProvider
    public List<DefaultOrgVO> loadOrgs(String parentId) throws Exception {
        return orgService.loadOrgs(parentId);
    }

}
